<?php
    if(DigNavigation_Service_Menu::isSelected($this->url)) {
        $class = ' selected';
    } else {
        $class = null;
    }
?>
<li class="menu_item<?= $class;?>">
    <a href="<?= $this->baseUrl() . '/' . $this->url?>"><?= $this->label ?></a>
    <?php
        if(is_array($this->children)) {
            echo '<ul>' . $this->partialLoop('menu/_item.phtml', $this->children) . '</ul>';
        }
    ?>
</li>